export default {

  //backgroundColor: '#2c343c',


  title: {
    text: '良品率动态变化',
    left: 'center',
    subtext: '',
    textStyle: {
      color: '#ccc'
    }
  },
  tooltip: {
    trigger: 'axis'
  },
  legend: {
    show: false,
    data: ['良品率']
  },
  toolbox: {
    show: false,
    feature: {
      dataZoom: {
        yAxisIndex: 'none'
      },
      dataView: {
        readOnly: false
      },
      magicType: {
        type: ['line', 'bar']
      },
      restore: {},
      saveAsImage: {}
    }
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    splitLine: {
      show: false
    },
    data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
  },
  yAxis: {
    type: 'value',
    splitLine: {
      show: false
    },
    axisLabel: {
      formatter: '{value}'
    }
  },
  series: [{
    name: '良品率',
    type: 'line',
    data: [11, 11, 15, 13, 12, 13, 10]
  }]

};


// // Enable data zoom when user click bar.
// var zoomSize = 6;
// myChart.on('click', function (params) {
//     console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]);
//     myChart.dispatchAction({
//         type: 'dataZoom',
//         startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)],
//         endValue: dataAxis[Math.min(params.dataIndex + zoomSize / 2, data.length - 1)]
//     });
// });
